<template>
  <div><h1>详情</h1>
    {{ news.content }}
    <router-link :to="{name:'show_news'}">回去</router-link>

  </div>
</template>

<script>
export default {
  name: "delite",
  data() {
    return {
      news: {},
      id: this.$route.query.id

    }
  },
  methods: {
    get_news() {
      this.$axios.get('news/?id=' + this.id)
        .then(res => {
          this.news = res.data.list
        })


    }
  },
  mounted() {
    this.get_news()
  }
}
</script>

<style scoped>

</style>
